package com.example.fresheveryday.po;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.math.BigInteger;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.apache.ibatis.annotations.AutomapConstructor;

/**
 * <p>
 * 
 * </p>
 *
 * @author ll
 * @since 2023-07-05
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
public class Productorder implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
//    @TableId(value = "id", type = IdType.AUTO)
//    private BigInteger id;

    /**
     * 订单号
     */
    @TableId(value = "orderId",type = IdType.AUTO)
    private String orderid;

    /**
     * 订单状态
     */
    private Integer state;

    /**
     * 订单创建时间
     */
    private Date created;

    /**
     * 运费
     */
    private BigDecimal freight;

    /**
     * 支付方式
     */
    @TableField("payStyle")
    private Integer paystyle;

    /**
     * 配送信息id
     */
    @TableField("distId")
    private String distid;

    /**
     * 订单总金额
     */
    private BigDecimal total;

    /**
     * 用户id
     */
    @TableField("userId")
    private String userid;
    @TableField(exist = false)
    private List<Suborder> orderdetailets;
    @TableField(exist = false)
    private Userreceiveinfo userreceiveinfo;


}
